package com.heima.admin.controller;

import com.heima.apis.wemedia.IWemediaClient;
import com.heima.model.common.dtos.ResponseResult;

import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@Slf4j
@RestController
@RequestMapping("/api/v1/channel")
public class AdchannelController {

    @Autowired
    IWemediaClient iWemediaClient;

    @GetMapping("/channels")
    public ResponseResult findAll() {
        return iWemediaClient.findAll();
    }


}